package com.bestv.bsr.core.utils;

import org.apache.commons.lang3.StringUtils;

import java.util.regex.Matcher;

public class RecommendIdUtils {

    public static String replaceSymbol(String value, String regex, String replacement) {
        if (StringUtils.isBlank(value)) {
            return null;
        }
        return value.replaceAll(regex, Matcher.quoteReplacement(replacement));
    }

}
